Apple, the Apple logo, and Macintosh are registered trademarks of Apple Computer, Inc.
Mac and OpenDoc are trademarks of Apple Computer, Inc. (Palatino/10/Plain)
Adding a Facet
Parts are notified when a facet is added to a display frame.
void FacetAdded(in ODFacet facet)
As when a display frame is added to a part, the part must take actions to handle the addition of a new facet to one of its display frames. Some of these actions are dependent on the nature of the part, but some are fairly standard. These are:
• Create facets for embedded frames. If there are embedded frames that should be visible within the new facet, the part should make them visible using the “Making a Frame Visible” recipe.
• Add partInfo to the facet. PartInfo is stored in facets less often than in frames, but the option is available to help parts distinguish different facets. The part may also use partInfo to store graphics-system-related information used for displaying that facet. If a part does want to store partInfo in its facets, it should be added when the facet is added to the part.
Parts are also notified when a facet is removed from a display frame.
void FacetRemoved(in ODFacet facet)
The part must handle the removal of facets from its display frames. The actions the part needs to perform to do this will depend on what it did when the facet was added. Typically the part should: